<?php
error_reporting(0);
if($_SERVER['REMOTE_ADDR']=='127.0.0.1')
{
    highlight_file(__FILE__);
}
$flag='{Trump_:"fake_news!"}';

class GWHT{
    public $hero;
    public function __construct(){
        $this->hero=new Yasuo;
    }
    public function __toString(){
        if (isset($this->hero)) {
            return $this->hero->hasaki();
        }else{
            return "You don't look very happy";
        }
    }
}
class Yongen{
    //flag.php
    public $file;
    public $test;
    public function __construct($file='',$test=''){
        $this->file=$file;
        $this->test=$test;
    }
    public function hasaki(){
        $d='<?php die("nononon");?>';
        $a=$d.$this->test;
        @file_put_contents($this->file,$a);

    }
}
class Yasuo{
    public function hasaki(){
        return "I'm the best happy windy man";
    }
}
$a=new GWHT();
$a->hero=new Yongen();
echo serialize($a);